﻿@model List<Domain.Entidades.VW_usuarios>

@{
  
    Layout = "~/Areas/Intranet/Views/Shared/_rel.cshtml";
       
}


<table id="cabecalhorel" name="cabecalhorel" >
      <tr>
        <td>
             <img src="~/Imagens/Cabecalho/logo.png" class="logo_"><br />
            <span id="titulo_rel">Relatório de usuários</span><br />
        <div id="nome_data">Emissor : @Session["nome_user"].ToString()<br />@String.Format("{0:dd/MM/yyyy HH:mm}", DateTime.Now) </div>
          
        </td>
    </tr>
    </table>
 

<table id="landrel" name="landrel" >
      <tr>
        <th>
           Login
        </th>
           <th>
           Nome
        </th>
        <th>
         Setor
        </th>
          <th>
           Unidade
        </th>
        <th>
            Email
        </th>
          <th>
            ICQ
        </th>
           <th>
            Tel/Ramal
        </th>
           <th>
            Data Cadastramento
        </th>
    </tr>

   @foreach (var example in Model){ 
       
   
    <tr>
        <td >
             @example.usu_login
        </td>
         <td >
             @example.usu_nome
        </td>

        <td width="70px" >
         @example.set_descricao
        </td>
       
          <td>
            @example.uni_descricao
        </td>
         
          <td >
            @example.usu_email
        </td>
         <td >
            @example.usu_icq
        </td>
         <td >
            
             @if (example.usu_tel != null)
             {
             if (example.usu_tel.ToString().Trim().Length > 0)
             {
         @Html.Raw("(") @example.usu_tel.ToString().Substring(0,2) @Html.Raw(")") @example.usu_tel.ToString().Substring(2,4) @Html.Raw(" - ") @example.usu_tel.ToString().Substring(5,4) @Html.Raw("(")@example.usu_ramal @Html.Raw(")") 
                
               }
             }

              </td>
       
        <td >
            
          @example.usu_datainclusao

              </td>
       
    </tr>
   
   
   }   
    

</table>
 
